package org.popupcommunication.dao;

import java.util.List;

import org.popupcommunication.exceptions.UserNotFoundException;
import org.popupcommunication.model.Agenda;
import org.popupcommunication.model.User;


//@Repository
public interface UserDAO  extends GenericRepository<User>    {

	User findByEmail(String email);
	int getIdUser(String email) throws UserNotFoundException;
	void updateUser(User toto);
	List<User> getUsers();
	List<User> getUsersWaitingValidation();
	List<User> getAdmins();
	List<Agenda> getCurrentsEventsUsers(User u);
	List<Agenda> getCurrentsEventsPersoUsers(User u);
}
